The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
Changes 06
Config-JSON.kpf 07
LICENSE 33
MANIFEST 12
META.yml 37
Makefile.PL 1847
README 34
dist.ini 22
lib/Config/JSON.pm 46
t/Config.t 23
t/release-pod-coverage.t 11
t/release-pod-syntax.t 33
12 files changed (This is a version diff) 4091
@@ -1,5 +1,11 @@
 Revision history for Config-JSON
 
+1.5100 2010-12-09
+ - Swtiched to Any::Moose so that it runs faster if used in a command line app.
+ - Now requires Any::Moose.
+ - No longer requires Moose.
+ - Added test for possible interaction problem with Data::GUID reported by David Delikat.
+
 1.5000 2009-12-19
  - Converted Config::JSON to use Moose.
  - Removed requirements for version and Class::InsideOut.
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Komodo Project File - DO NOT EDIT -->
+<project id="8636d694-6100-8946-82b7-92c9b2db9ae6" kpf_version="4" name="Config-JSON.kpf">
+<preference-set idref="8636d694-6100-8946-82b7-92c9b2db9ae6">
+  <boolean id="import_live">1</boolean>
+</preference-set>
+</project>
@@ -1,4 +1,4 @@
-This software is copyright (c) 2009 by Plain Black Corporation.
+This software is copyright (c) 2010 by Plain Black Corporation.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@ b) the "Artistic License"
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2009 by Plain Black Corporation.
+This software is Copyright (c) 2010 by Plain Black Corporation.
 
 This is free software, licensed under:
 
@@ -270,7 +270,7 @@ That's all there is to it!
 
 --- The Artistic License 1.0 ---
 
-This software is Copyright (c) 2009 by Plain Black Corporation.
+This software is Copyright (c) 2010 by Plain Black Corporation.
 
 This is free software, licensed under:
 
@@ -1,4 +1,5 @@
 Changes
+Config-JSON.kpf
 LICENSE
 MANIFEST
 META.yml
@@ -12,4 +13,4 @@ t/Duplicate.t
 t/Include.t
 t/Wildcard.t
 t/release-pod-coverage.t
-t/release-pod-syntax.t
\ No newline at end of file
+t/release-pod-syntax.t
@@ -2,17 +2,21 @@
 abstract: 'A JSON based config file system.'
 author:
   - 'JT Smith <RIZEN@cpan.org>'
-generated_by: 'Dist::Zilla version 1.093400'
+build_requires: {}
+configure_requires:
+  ExtUtils::MakeMaker: 6.31
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 4.102340, CPAN::Meta::Converter version 2.101670'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
 name: Config-JSON
 requires:
+  Any::Moose: 0.13
   File::Temp: 0.18
   JSON: 2.16
   List::Util: 1.19
-  Moose: 0.93
   Test::Deep: 0.095
   Test::More: 0.7
-version: 1.5000
+version: 1.5100
@@ -4,24 +4,53 @@ use warnings;
 
 
 
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
-  DISTNAME  => 'Config-JSON',
-  NAME      => 'Config::JSON',
-  AUTHOR    => "JT\ Smith\ \<RIZEN\@cpan\.org\>",
-  ABSTRACT  => "A\ JSON\ based\ config\ file\ system\.",
-  VERSION   => '1.5000',
-  EXE_FILES => [ qw() ],
-  (eval { ExtUtils::MakeMaker->VERSION(6.31) } ? (LICENSE => 'perl') : ()),
-  PREREQ_PM    => {
-    "Test::More" => '0.7',
-    "List::Util" => '1.19',
-    "File::Temp" => '0.18',
-    "JSON" => '2.16',
-    "Test::Deep" => '0.095',
-    "Moose" => '0.93',
+use ExtUtils::MakeMaker 6.31;
+
+
+
+my %WriteMakefileArgs = (
+  'ABSTRACT' => 'A JSON based config file system.',
+  'AUTHOR' => 'JT Smith <RIZEN@cpan.org>',
+  'BUILD_REQUIRES' => {},
+  'CONFIGURE_REQUIRES' => {
+    'ExtUtils::MakeMaker' => '6.31'
   },
-  test => {TESTS => 't/*.t'}
+  'DISTNAME' => 'Config-JSON',
+  'EXE_FILES' => [],
+  'LICENSE' => 'perl',
+  'NAME' => 'Config::JSON',
+  'PREREQ_PM' => {
+    'Any::Moose' => '0.13',
+    'File::Temp' => '0.18',
+    'JSON' => '2.16',
+    'List::Util' => '1.19',
+    'Test::Deep' => '0.095',
+    'Test::More' => '0.7'
+  },
+  'VERSION' => '1.5100',
+  'test' => {
+    'TESTS' => 't/*.t'
+  }
 );
 
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
+  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
+  my $pp = $WriteMakefileArgs{PREREQ_PM};
+  for my $mod ( keys %$br ) {
+    if ( exists $pp->{$mod} ) {
+      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
+    }
+    else {
+      $pp->{$mod} = $br->{$mod};
+    }
+  }
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
+
+
@@ -1,12 +1,13 @@
 
 
-This archive contains the distribution Config-JSON, version
-1.5000:
+This archive contains the distribution Config-JSON,
+version 1.5100:
 
   A JSON based config file system.
 
-This software is copyright (c) 2009 by Plain Black Corporation.
+This software is copyright (c) 2010 by Plain Black Corporation.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
 
+
@@ -1,5 +1,5 @@
 name    = Config-JSON
-version = 1.5000
+version = 1.5100
 author  = JT Smith <RIZEN@cpan.org>
 license = Perl_5
 copyright_holder = Plain Black Corporation
@@ -11,7 +11,7 @@ List::Util = 1.19
 Test::More = 0.7
 Test::Deep = 0.095
 File::Temp = 0.18
-Moose = 0.93
+Any::Moose = 0.13
 JSON = 2.16
 
 
@@ -1,7 +1,9 @@
 package Config::JSON;
-our $VERSION = '1.5000';
+BEGIN {
+  $Config::JSON::VERSION = '1.5100';
+}
 
-use Moose;
+use Any::Moose;
 use File::Spec;
 use JSON 2.0;
 use List::Util;
@@ -329,7 +331,7 @@ Config::JSON - A JSON based config file system.
 
 =head1 VERSION
 
-version 1.5000
+version 1.5100
 
 =head1 SYNOPSIS
 
@@ -662,5 +664,5 @@ Config::JSON is Copyright 2009 Plain Black Corporation (L<http://www.plainblack.
 
 =cut
 
-no Moose;
+no Any::Moose;
 __PACKAGE__->meta->make_immutable;
\ No newline at end of file
@@ -1,4 +1,4 @@
-use Test::More tests => 35;
+use Test::More tests => 36;
 
 use lib '../lib';
 use Test::Deep;
@@ -82,7 +82,8 @@ my $hash = $config->get('hash');
 is $hash->{'cdn/'}, 'CDNRoot', 'allow for escaped slashes in keys';
 my $reconfig = Config::JSON->new($filename);
 cmp_bag($config->get('cars/ford'),$reconfig->get('cars/ford'), 'set() multilevel after re-reading config file');
-
+$config->set('Data::GUID', '9EDE9D96-D416-11DF-A7FC-B391564030AF');
+is($config->get('Data::GUID'), '9EDE9D96-D416-11DF-A7FC-B391564030AF', 'report that Data::GUID does not work with CJ');
 
 # delete 
 $config->delete("dsn");
@@ -18,4 +18,4 @@ eval "use Pod::Coverage::TrustPod";
 plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
   if $@;
 
-all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
\ No newline at end of file
+all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
@@ -9,7 +9,7 @@ BEGIN {
 
 use Test::More;
 
-eval "use Test::Pod 1.00";
-plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+eval "use Test::Pod 1.41";
+plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
 
-all_pod_files_ok();
\ No newline at end of file
+all_pod_files_ok();